package com.zm.campus.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zm
 * @since 2021-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_tree_hole")
public class TreeHole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 树洞主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    private String title;
    private Integer releaseSchoolId;//发布者所在的学校

    /**
     * 内容
     */
    private String content;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm",timezone = "GMT+8")
    private Date releaseDate;

    /**
     * 发布者的用户id外键
     */
    private String releaseUserId;

    private Long goodsPoint;//总的点赞数
    private String pointUidList;//一个list集合用来存放点赞人的用户id
    private Boolean nowUserIsPoint;//用来后端参数存放当前用户是否点赞了这条树洞


}
